// Вызываем кастомный селект
customSelect('select');

// Создаем экземпляр easepick (календаря)
const picker = new easepick.create({
  element: document.getElementById('date'),
  css: [
    'https://cdn.jsdelivr.net/npm/@easepick/bundle@1.2.1/dist/index.css'
  ],
  format: 'DD.MM.YY',
});

const inputSubscribe = document.querySelector('.subscribe__input');
const labelSubscribe = document.querySelector('.subscribe__label');

inputSubscribe.addEventListener('input', () => {
  if (inputSubscribe.value.trim() !== '') {
    labelSubscribe.classList.add('subscribe__label--top');
  } else {
    labelSubscribe.classList.remove('subscribe__label--top');
  }
});
